package com.entity.patient;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 患者
 * patientsID：患者id
 * doctorID:医生ID
 * name:患者姓名
 * age：患者年龄
 * tel：患者电话
 * dt：创建时间
 */
public class Patient {
    private Integer patientID;
    private Integer doctorID;
    private Integer caseID;
    private String name;
    private String sex;
    private Integer age;
    private String tel;
    private String anType;
    private String chType;
    private String mainNeeds;
    private String mainAims;
    private String dt;
    private String clinic;
    private String doctor;

    public String getClinic() {
        return clinic;
    }

    public void setClinic(String clinic) {
        this.clinic = clinic;
    }

    public String getDoctor() {
        return doctor;
    }

    public void setDoctor(String doctor) {
        this.doctor = doctor;
    }

    public Integer getCaseID() {
        return caseID;
    }

    public void setCaseID(Integer caseID) {
        this.caseID = caseID;
    }

    public Patient() {
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd");
        this.dt = df.format(new Date());
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    @Override
    public String toString() {
        return "Patient{" +
                "patientID=" + patientID +
                ", doctorID=" + doctorID +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", tel='" + tel + '\'' +
                ", anType='" + anType + '\'' +
                ", chType='" + chType + '\'' +
                ", mainNeeds='" + mainNeeds + '\'' +
                ", mainAims='" + mainAims + '\'' +
                ", dt='" + dt + '\'' +
                '}';
    }

    public Integer getPatientID() {
        return patientID;
    }

    public void setPatientID(Integer patientID) {
        this.patientID = patientID;
    }

    public Integer getDoctorID() {
        return doctorID;
    }

    public void setDoctorID(Integer doctorID) {
        this.doctorID = doctorID;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getAnType() {
        return anType;
    }

    public void setAnType(String anType) {
        this.anType = anType;
    }

    public String getChType() {
        return chType;
    }

    public void setChType(String chType) {
        this.chType = chType;
    }

    public String getMainNeeds() {
        return mainNeeds;
    }

    public void setMainNeeds(String mainNeeds) {
        this.mainNeeds = mainNeeds;
    }

    public String getMainAims() {
        return mainAims;
    }

    public void setMainAims(String mainAims) {
        this.mainAims = mainAims;
    }

    public String getDt() {
        return dt;
    }

    public void setDt(String dt) {
        this.dt = dt;
    }
}
